package io.gitee.zhangbinhub.admin.workflow.notify

import io.gitee.zhangbinhub.acp.boot.exceptions.WebException
import io.gitee.zhangbinhub.acp.boot.interfaces.LogAdapter
import io.gitee.zhangbinhub.admin.workflow.base.PendingFinishedNotify
import org.flowable.engine.runtime.ProcessInstance
import org.flowable.task.api.Task
import org.springframework.stereotype.Component

@Component
class LogPendingFinishedNotify(private val logAdapter: LogAdapter) : PendingFinishedNotify(logAdapter) {
    @Throws(WebException::class)
    override fun doTaskNotify(processInstance: ProcessInstance, task: Task, userIdList: List<String>) {
        logAdapter.debug("待办完成通知：taskId【${task.id}】processInstance.processInstanceId【${processInstance.processInstanceId}】processInstance.processDefinitionKey【${processInstance.processDefinitionKey}】processInstance.businessKey【${processInstance.businessKey}】，userId：$userIdList")
    }
}